Skip to content
This repository has been archived by the owner on Jul 31, 2018. It is now read-only.

migrated workflow to react-transform #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thebigredgeek
Copy link

No description provided.

@thebigredgeek
Copy link
Author

#44

@mikaa123
Copy link

Just to know, could we use the webpack-dev-server with react-transform?

@tj
Copy link
Owner

tj commented Jan 26, 2016

but it's so much more code! haha, what are the benefits?

@thebigredgeek
Copy link
Author

Yeah it is. There is a lot of boilerplate needed for transform. @mikaa123 you have to use the express middleware IIRC. I looked at doing this with only the dev server about a month ago but no joy. @tj maybe a good case for one of those "high level packages"? React + Webpack + HMR type all in one thing? I agree it's a lot of boilerplate.

@tj
Copy link
Owner

tj commented Jan 26, 2016

yea wtf haha seems like a regression in that sense if the old thing is deprecated

@thebigredgeek
Copy link
Author

Yeah IDK why they didn't just roll into something easier to work with. A simple tool that abstracts a lot of that away would be nice.

@tracker1
Copy link

For anyone interested, here's my work in progress boilerplate for the server portion that supports webpack + react + hmr, with koa. (I also have material-ui, but very little done on the front end)

https://github.com/tracker1/r3k-example/blob/master/server/server.dev.js

YMMV, I'm working on this as time permits, and it may be broken at any given point, currently works (npm run server:dev). I'm running with the current node 5.

@thebigredgeek
Copy link
Author

Bump?

@tj
Copy link
Owner

tj commented Feb 5, 2016

still have to check it out, I don't have any issues with the old stuff, but it does mention https://github.com/gaearon/react-transform-boilerplate#can-i-use-webpackdevserver-with-this

@thebigredgeek
Copy link
Author

Oh shit I totally didn't see that before haha. I'll see if I can hack that out of this PR this weekend

@schickling
Copy link

Any update on this @thebigredgeek? Would love to use it 👍

Edit: I've got react-transform working without an additional devServer.js using webpack-dev-server. This way you can bring down the boilerplate code to a minimum again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants